package com.seaengine.valueobject
{
	import com.seaengine.constData.Enums;

	/**
	 * 装备 
	 * @author Administrator
	 * 
	 */
	public class EquipmentVo extends BaseItemVo
	{
		public function EquipmentVo()
		{
			category = Enums.ITEM_CATEGORY_EQUIPMENT;
		}

		public var strengthLevel:uint; /**强化等级*/
		public var refiningProperties:Object = new Object(); /**精炼：属性、值*/
		public var holes:Object = new Object(); /**孔信息：宝石ID,_gemID; 开启标记,_openFlag*/

		public var damageExtendedByStrength:int; /**强化增加的伤害*/

		public function isEnhancable():Boolean
		{
			var rslt:uint = attribs & Enums.UPROPERTY_ENHANCEABLE;
			return rslt > 0 ? true : false;
		}

		public function hasGem():Boolean
		{
			for each (var hole:Object in holes)
				if (hole._openFlag && hole._gemID)
					return true;
			return false;
		}
		
		public function get bEquipped():Boolean
		{
			return index < 20;
		}
	}
}
